OBJS = mntree.o 
CFLAGS = -g -Wall -Werror -Iinclude/ -fpic 


all: libmntree.a 


%.o: %.c
	@$(CC) $*.c $(CFLAGS) -c 
	@echo "CC 	" $*

libmntree.a: $(OBJS)
	@$(AR) -cr libmntree.a $(OBJS)
	@echo "AR 	 libmntree.a"

libmntree.so: $(OBJS)
	@$(LD) $(OBJS) -o libmntree.so --shared 



.PHONY clean:
	rm $(OBJS) libmntree.a -f 

